/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.javanile.elotester;

import org.javanile.chess.stone.*;
/**
 *
 * @author cicciodarkast
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        if (args.length>0) {
            String enginescript = args[0];
            EngineInterface eng = new EngineInterface(enginescript);

            eng.exec();
            try {
                Runtime.getRuntime().wait(3000);
            } catch(Exception e){
                e.printStackTrace();
            }
            eng.send("uci");

            String s = eng.read();

            eng.stop();
        } else {
            System.out.println("no engine passed.");
        }        
    }

}
